<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title></title>
    <link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
    <link href="../../assets/lib/font-awesome-4.7.0/css/font-awesome.css" rel="stylesheet" />
    <link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body>
	<div class="txtcenter" style="margin:0 auto;padding-top:10px;">
	    <form class="layui-form layui-form-pane" action="" autocomplete="off">
	        <div class="layui-form-item">
	            <div class="layui-inline">
	                <label class="layui-form-label">类型名称</label>
	                <div class="layui-input-inline">
	                    <input type="text" id="name" name="name" placeholder="请输入知识库类型名称" class="layui-input" />
	                </div>
	                <label class="layui-form-label">一级类型</label>
	                <div class="layui-input-inline">
	                    <select lay-filter="firstType" lay-search="" id="firstType">
	                    
	                    </select>
	                </div>
	                <button type="reset" class="layui-btn layui-btn-primary list-form-search">重置</button>
	                <button class="layui-btn list-form-search" type="button" id="formSearch">搜索</button>
	            </div>
	        </div>
	    </form>
	</div>
    <div class="winui-toolbar">
        <div class="winui-tool">
            <button id="reloadTable" class="winui-toolbtn"><i class="fa fa-refresh" aria-hidden="true"></i>刷新数据</button>
            <button id="addBean" class="winui-toolbtn" auth="1568476869775"><i class="fa fa-plus" aria-hidden="true"></i>新增类型</button>
        </div>
    </div>
    <div style="margin:auto 10px;">
        <table id="messageTable" lay-filter="messageTable"></table>
        <script type="text/html" id="tableBar">
			{{# if(d.state == 3){ }}
				{{# if(auth('1568476920986')){ }}
            		<a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="edit">编辑</a>
				{{# } }}
				{{# if(auth('1568476895545')){ }}
            		<a class="layui-btn layui-btn-xs" lay-event="up">上线</a>
				{{# } }}
				{{# if(auth('1568476884756')){ }}
            		<a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="delet">删除</a>
				{{# } }}
			{{# }else if(d.state == 2 && auth('1568476909140')){ }}
				<a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="down">下线</a>
			{{# }else if(d.state == 1){ }}
				{{# if(auth('1568476920986')){ }}
            		<a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="edit">编辑</a>
				{{# } }}
				{{# if(auth('1568476895545')){ }}
            		<a class="layui-btn layui-btn-xs" lay-event="up">上线</a>
				{{# } }}
				{{# if(auth('1568476884756')){ }}
            		<a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="delet">删除</a>
				{{# } }}
			{{# } }}
			{{# if(auth('1568476932717')){ }}
            	<a class="layui-btn layui-btn-xs" lay-event="upMove">上移</a>
			{{# } }}
			{{# if(auth('1568476944283')){ }}
            	<a class="layui-btn layui-btn-xs" lay-event="downMove">下移</a>
			{{# } }}
        </script>
    </div>
    <script src="../../assets/lib/layui/layui.js"></script>
    <script src="../../assets/lib/layui/custom.js"></script>
    <script type="text/javascript">
        layui.config({base: '../../js/knowledgetype/'}).use('knowledgetypelist');
    </script>
</body>
</html>